/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2022-10-09
 * Time: 9:25
 */
public class Test {
    public static void main(String[] args) {
        TestBinaryTree testBinaryTree = new TestBinaryTree();
        TestBinaryTree.TreeNode root = testBinaryTree.createTree("ABD##E##CF###");
        testBinaryTree.preorder(root);
        System.out.println();
        testBinaryTree.inorder(root);
        System.out.println();
        testBinaryTree.postonder(root);
        System.out.println();
        System.out.println(testBinaryTree.size(root));
        System.out.println(testBinaryTree.getLeafNodeCount(root));
        System.out.println(testBinaryTree.getKLevelNodeCount(root,3));
        System.out.println(testBinaryTree.getHeight(root));
        if(testBinaryTree.find(root,'C') != null){
            System.out.println("存在");
        }else {
            System.out.println("不存在");
        }
        testBinaryTree.levelOrder(root);
        System.out.println();
        System.out.println(testBinaryTree.isCompleteTree(root));
    }
}
